package com.qr;

import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;
import cn.krui.helper.filter.ITokenFilterSetting;

/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/8/13 10:20:40
 * 1、排除的url> 2、只验证token的url> 3、验证权限的url
 */
@Component
public class TokenFilterSettingWmyw implements ITokenFilterSetting {

/**
 * 排除的url
 */
    @Override
    public List<String> EXCEPTION_URI() {
        List<String> list = new ArrayList<>();
        list.add("/");
        list.add("/favicon.ico");
        list.add("*/wmyw/actuator/*");
        list.add("*/swagger-ui.html*");
        list.add("*/v2/api-docs");
        list.add("*/swagger-resources*");
        list.add("*/webjars/*");
        list.add("*/wmyw/system_check/*");
        list.add("*/wmywApi/qr_amount_record/*");
        list.add("*/wmywApi/qr_banner/*");
        list.add("*/wmywApi/qr_base_goods/*");
        list.add("*/wmywApi/qr_base_goods_group/*");
        list.add("*/wmywApi/qr_base_specification/*");
        list.add("*/wmywApi/qr_category/*");
        list.add("*/wmywApi/qr_category_group/*");
        list.add("*/wmywApi/qr_comment/*");
        list.add("*/wmywApi/qr_discount_coupon/*");
        list.add("*/wmywApi/qr_discount_off/*");
        list.add("*/wmywApi/qr_extraction_record/*");
        list.add("*/wmywApi/qr_favorite/*");
        list.add("*/wmywApi/qr_generateid/*");
        list.add("*/wmywApi/qr_goods/*");
        list.add("*/wmywApi/qr_goods_group/*");
        list.add("*/wmywApi/qr_group/*");
        list.add("*/wmywApi/qr_message_shop/*");
        list.add("*/wmywApi/qr_message_user/*");
        list.add("*/wmywApi/qr_order_takeout/*");
        list.add("*/wmywApi/qr_order_takeout_goods/*");
        list.add("*/wmywApi/qr_order_takeout_status/*");
        list.add("*/wmywApi/qr_printer/*");
        list.add("*/wmywApi/qr_shop/*");
        list.add("*/wmywApi/qr_shop_apply/*");
        list.add("*/wmywApi/qr_shop_class/*");
        list.add("*/wmywApi/qr_shop_group/*");
        list.add("*/wmywApi/qr_shop_user/*");
        list.add("*/wmywApi/qr_shop_work_time/*");
        list.add("*/wmywApi/qr_shopping_cart/*");
        list.add("*/wmywApi/qr_specification/*");
        list.add("*/wmywApi/qr_sys_login_logs/*");
        list.add("*/wmywApi/qr_sys_params/*");
        list.add("*/wmywApi/qr_sys_tags/*");
        list.add("*/wmywApi/qr_sys_users/*");
        list.add("*/wmywApi/qr_user_card/*");
        list.add("*/wmywApi/qr_user_coupon/*");
        return list;
    }

/**
 * 只验证token的地址
 */
    @Override
    public List<String> EXCEPTION_TOKEN_URI() {
        List<String> list = new ArrayList<>();

        return list;
    }
    
}